﻿using System;
class Garden
{
    static void Main(string[] args)
    {
        int[] veg = new int[6];
        int[] area = new int[6];
        float[] prices = { 0.5f, 0.4f, 0.25f, 0.6f, 0.3f, 0.4f };
        float sum = 0;
        int beansArea = 250;
        for (int i = 0; i < 6; i++)
        {
            veg[i] = int.Parse(Console.ReadLine());
            sum += veg[i] * prices[i];
            if (i < 5)
            {
                area[i] = int.Parse(Console.ReadLine());
                beansArea -= area[i];
            }
        }
        Console.WriteLine("Total costs: {0:0.00}",sum);
        if (beansArea<0)
        {
            Console.WriteLine("Insufficient area");
        }
        else if (beansArea==0)
        {
            Console.WriteLine("No area for beans");
        }
        else
        {
            Console.WriteLine("Beans area: {0}",beansArea);
        }
    }
}